import request from '@/utils/request'

export default {
  //  分页查询
  queryCheckPackagePage: (data) => {
    return request({
      url: '/admin/queryCheckPackagePage',
      method: 'post',
      data: data
    })
  },
  // 查询详情
  getDetail: (data) => {
    return request({
      url: '/admin/checkPackageDetail',
      method: 'post',
      data
    })
  },
  // 新增
  add: (data) => {
    return request({
      url: '/admin/checkPackageAddForCompany',
      method: 'post',
      data
    })
  },
    // 更新
  update: (data) => {
    return request({
      url: '/admin/checkPackageInfoUpdate',
      method: 'post',
      data
    })
  },
    // 删除
  delete: (data) => {
    return request({
      url: '/admin/checkPackageDelete',
      method: 'post',
      data
    })
  },
  //  修改套餐
  updateItem:data => {
    return request({
        url: '/admin/checkPackageItemListUpdate',
      method: 'post',
      data
    })
  }
}
